'''
Created on 1 nov 2012

@author: Lanboost
'''
import Image

def getPixel(image, buffe, x, y):
    return buffe[y*image.size[0]+x]
    
def setPixel(image, buffe, x, y, pixel):
    buffe[y*image.size[0]+x] = pixel
    return buffe

def imageDataToList(imagedata):
    return list[imagedata]